import { axios } from '@/utils/request'

/**
 * 门店管理
 */

export function selectPage (parameter) {
  return axios({
    url: '/merchant/store/list',
    method: 'get',
    params: parameter
  })
}

export function saveOrUpdate (parameter) {
  return axios({
    url: '/merchant/store/saveOrUpdate',
    method: 'post',
    data: parameter
  })
}

export function del (parameter) {
  return axios({
    url: '/merchant/store/' + parameter,
    method: 'delete'
  })
}

export function brandList (parameter) {//品牌分类
  return axios({
    url: '/merchant/brand/optionselect',
    method: 'get',
    params: parameter
  })
}
export function floorList (parameter) {//楼层分类
  return axios({
    url: '/merchant/floor/optionselect',
    method: 'get',
    params: parameter
  })
}
export function categoryList (parameter) {//业态分类
  return axios({
    url: '/system/category/optionselect',
    method: 'get',
    params: parameter
  })
}